<?php
	include 'conexion.php';
	$cancion = $_GET["q"];
	$conx = conectarBD();
	$resultados = consultarBD_cancion($conx,$cancion);
	$img = 	'http://2.bp.blogspot.com/_arbjzKBuHWU/SzvMBSPrs3I/AAAAAAAAAeY/wbAT8wcI3tw/s400/url.jpg';
	$return_arr = array();
	while ($row=mysql_fetch_array($resultados,MYSQL_BOTH)) {
				$row_array["id"] = $row['id'];
				$row_array["img"] = $img;
				$row_array["nombre"] = $row['nombre'];
				$row_array["artista"] = $row['artista'];
				array_push($return_arr,$row_array);
	}
	echo json_encode($return_arr);
?>